<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./dist/include-openlayers-local.js"></script>
    <!-- <link rel="stylesheet" href="./css/map.css" /> -->
    <style>
      #map {
        width: 100vw;
        height: 100vh;
      }
    </style>
  </head>
  <body>
    <div id="map"></div>
    <script>
      var map = new ol.Map({
        target: 'map',
        layers: [],
        view: new ol.View({
          projection: 'EPSG:4326',
          center: [114.3, 30.5],
          zoom: 4,
        }),
      })
      function initMap(map) {
        var docLayer = new Zondy.Map.Doc('', 'guanggu', {
          ip: 'localhost',
          port: 6163,
        })
        map.addLayer(docLayer)
      }
      initMap(map)
    </script>
  </body>
</html>
